package com.yunke.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 分销提现记录实体类
 * 
 * @author yunke
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yunke_distributor_withdraw")
@Schema(name = "YunkeDistributorWithdraw", description = "分销提现记录实体")
public class YunkeDistributorWithdraw implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "提现记录ID")
    private Long id;

    @Schema(description = "分销商ID")
    private Long distributorId;

    @Schema(description = "分销商用户ID")
    private Long distributorUserId;

    @Schema(description = "提现单号")
    private String withdrawNo;

    @Schema(description = "申请提现金额")
    private BigDecimal applyAmount;

    @Schema(description = "手续费")
    private BigDecimal feeAmount;

    @Schema(description = "实际到账金额")
    private BigDecimal actualAmount;

    @Schema(description = "提现账户类型（1支付宝 2微信 3银行卡）")
    private Integer accountType;

    @Schema(description = "提现账户信息")
    private String accountInfo;

    @Schema(description = "提现户名")
    private String accountName;

    @Schema(description = "提现状态（0待审核 1审核通过 2审核拒绝 3处理中 4已完成 5已失败）")
    private Integer withdrawStatus;

    @Schema(description = "申请时间")
    private Long applyTime;

    @Schema(description = "审核时间")
    private Long auditTime;

    @Schema(description = "审核人ID")
    private Long auditorId;

    @Schema(description = "审核意见")
    private String auditRemark;

    @Schema(description = "处理时间")
    private Long processTime;

    @Schema(description = "处理人ID")
    private Long processorId;

    @Schema(description = "完成时间")
    private Long completeTime;

    @Schema(description = "失败原因")
    private String failReason;

    @Schema(description = "第三方交易单号")
    private String thirdTradeNo;

    @Schema(description = "第三方响应数据")
    private String thirdResponse;

    @Schema(description = "凭证图片")
    private String voucherImages;

    @Schema(description = "备注信息")
    private String remark;

    @Schema(description = "状态（0正常 1删除）")
    private Integer status;

    @Schema(description = "创建时间")
    private Long createTime;

    @Schema(description = "更新时间")
    private Long updateTime;
} 